package request

import (
	"gitee.com/cjsn/topsdk/util"
)

type AlibabaSscSupplyplatformServiceworkerWokrerleaveRequest struct {
	/*
	   开始和结束时间 defalutValue��[]    */
	LeaveBeginAndEndArray *[]string `json:"leave_begin_and_end_array,omitempty" required:"false" `
	/*
	   请假原因 defalutValue��请假原因    */
	Reason *string `json:"reason,omitempty" required:"false" `
	/*
	   身份证号 defalutValue��XXX    */
	IdentityNumber *string `json:"identity_number,omitempty" required:"false" `
}

func (s *AlibabaSscSupplyplatformServiceworkerWokrerleaveRequest) SetLeaveBeginAndEndArray(v []string) *AlibabaSscSupplyplatformServiceworkerWokrerleaveRequest {
	s.LeaveBeginAndEndArray = &v
	return s
}
func (s *AlibabaSscSupplyplatformServiceworkerWokrerleaveRequest) SetReason(v string) *AlibabaSscSupplyplatformServiceworkerWokrerleaveRequest {
	s.Reason = &v
	return s
}
func (s *AlibabaSscSupplyplatformServiceworkerWokrerleaveRequest) SetIdentityNumber(v string) *AlibabaSscSupplyplatformServiceworkerWokrerleaveRequest {
	s.IdentityNumber = &v
	return s
}

func (req *AlibabaSscSupplyplatformServiceworkerWokrerleaveRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.LeaveBeginAndEndArray != nil {
		paramMap["leave_begin_and_end_array"] = util.ConvertBasicList(*req.LeaveBeginAndEndArray)
	}
	if req.Reason != nil {
		paramMap["reason"] = *req.Reason
	}
	if req.IdentityNumber != nil {
		paramMap["identity_number"] = *req.IdentityNumber
	}
	return paramMap
}

func (req *AlibabaSscSupplyplatformServiceworkerWokrerleaveRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
